<div class="RightColumn">
<form action="<?php echo base_url().index_page(); ?>/adminpage/cpanel/download_manipulate/" method="post" enctype="multipart/form-data" name="adminForm" id="adminForm" autocomplete="off">
            <div class="P10">
                <h2 class="Title01 P10 BorderBot01">Download Manager - Edit item</h2>
                 <div id="language" style="cursor:pointer"><img id="english" src="<?php echo base_url(); ?>assets/admin/img/uk.png" title="English"/>&nbsp;<img id="turkey" src="<?php echo base_url(); ?>assets/admin/img/Turkey.png" title="Turkish"/>
 </div>
                
                <div class="P10">
                <div id="en">
                    <h4 class="Title02 P10Bot">1. Enter Item Name:</h4>
                    <p class="FS12 P10Bot">
                        Name of download information
                    </p>
                    <div class="BlueBackground M20Bot">
                        <input  type="text"  name="txtName1" id="txtName1" class="AllBoxText" value="<?php echo isset($banners[0]['name'])?$banners[0]['name']:""; ?>" style="width:30%;" />
                    </div>
                    </div>
                    
                    <div id="tr">
                   <h4 class="Title02 P10Bot">1. Enter Item Name:</h4>
                    <p class="FS12 P10Bot">
                        Name of download information
                    </p>
                    <div class="BlueBackground M20Bot">
                        <input  type="text"  name="txtName2" id="txtName2" class="AllBoxText" value="<?php echo isset($banners[1]['name'])?$banners[1]['name']:""; ?>" style="width:30%;" />
                    </div>

                    
					</div>
                    <h4 class="Title02 P10Bot">2. Item ID:</h4>
                    <p class="FS12 P10Bot">
                        Example: 00123AD
                    </p>
                    <div class="BlueBackground M20Bot">
                        <input  type="text"  name="itemid" id="itemid" class="AllBoxText" value="<?php echo isset($banners[0]['itemid'])?$banners[0]['itemid']:""; ?>" style="width:30%;" />
                    </div>
                    <h4 class="Title02 P10Bot">2. Choose Category:</h4>
                    <p class="FS12 P10Bot">
                        Choose a category for download file
                    </p>
                    <div class="BlueBackground M20Bot">
                    <select name="category" id="category" class="AllBoxText"  style="width:30%;">
                    <?php
						foreach($category as $item)
						{
							if(isset($banners[0]['category_id']))
							{
								$checked=" ";
								if($banners[0]['category_id']==$item['category_id'])
								{
									$checked=" selected";
								}
								echo "<option value='".$item['category_id']."'".$checked.">".$item['cname']."</option>";
							}
							else
							{
								echo "<option value='".$item['category_id']."'>".$item['cname']."</option>";
							}
						}
					?>
                    </select>                       
                    </div>

                    <h4 class="Title02 P10Bot">4. Upload Downloadable Item:</h4>
                    <p class="FS12 P10Bot">
                        Please choose a file.
                    </p>
                    <div class="BlueBackground M20Bot">
                        <div class="Container">
					        <div class="Picture">
						     <?php if (isset($banners[0]['downloadfile']))
							{
							?>
						        <a style="color:#F36; text-decoration:underline" href="<?php echo base_url(); ?>upload_file/download/<?php echo $banners[0]['downloadfile']; ?>">DOWNLOAD FILE</a>
                            <?php 
							}
							
							else
							{
							?>
                            <img src="<?php echo base_url(); ?>assets/img/noimage.png" width="280px" />
                            <?php 
							}
							?>
					        </div>
					        <div class="Description1">
                                <p class="P10Bot"><strong>Allow file type</strong>: png, jpg, gif, doc, docx, pdf, xls, xlsx. <strong>Max size</strong>: 50 MB</p>
                                <ul class="UpLoadImage">
                                    <li><input  type="file" name="image" class="AllBoxText" style="width:300px;" /></li>
                                    
                                </ul>
					        </div>
				        </div>
                    </div>
                    <p class="W95">
                    <input type="hidden" name="currentid" value="<?php echo $id; ?>" />
                        <div style="width:100px;float:left"><a style="cursor:pointer" onclick="javascript: document.forms[0].submit();"  class="Button01" title="Save">Save</a></div><div style="width:20px;float:left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div><div style="width:100px;float:left"><a href="<?php echo base_url().index_page(); ?>/adminpage/cpanel/downloadmanager" class="Button01" title="Cancel">Cancel</a></div>
                    </p>
					<p class="W95">&nbsp;</p>
                </div>
            </div>
            </form>
</div>
<script>
jQuery(document).ready(function(){
	jQuery("#DownloadsManager").addClass('current');
});
</script>